import con from "@/api/axios";
export default {
  /**
   * @description:分页查询接口
   * @param {Number}  page
   * @param {Number}  size
   * @return {Object}
   */
  queryPageList(params) {
    return con.get(`v3/modelTenant/pest/queryByGrowthPhaseNo?growthPhaseNo=${params}&organizationNo=${sessionStorage.organizationNo}`);
  },
  delList(params) {
    return con.get(`v3/modelTenant/pest/delByNo?no=${params}&organizationNo=${sessionStorage.organizationNo}`);
  },
  diseaseImage(diseaseImageId) {
    return con.get(`v3/modelTenant/pestImage/query?diseaseImageId=${diseaseImageId}`, {
      diseaseImageId: diseaseImageId
    });
  },
  // 查询种养品种
  queryPlantByCondition(params) {
    return con.post(`v3/templateTenant/plantVariety/queryByCondition`, { organizationNo: sessionStorage.organizationNo, ...params });
  },
  // 查询种养品种(有阶段)
  queryWithPhaseByCondition(params) {
    return con.get(`v3/templateTenant/plantVariety/queryListWithPhase?organizationNo=${sessionStorage.organizationNo}`);
  },
  // 查询阶段
  queryPlantNo(params) {
    return con.post(`v3/templateTenant/growthPhase/queryByPlantVarietyNo`, { organizationNo: sessionStorage.organizationNo, ...params });
  }
}
